import App from './App'
import uView from './uni_modules/uview-ui'
import api from './api/index.js'
import config from './utils/config.js'
// import loadingPage from './components/loading.vue'
import store from './store'
Vue.use(uView);
// Vue.use(loadingPage);
// Vue.component('loadingPage', loadingPage);
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$api = api
Vue.prototype.$config = config
App.mpType = 'app'
const app = new Vue({
	store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif